
def myadd4(a, b, c=0, d=0):
    return a + b + c + d


print(myadd4(1, 2))
print(myadd4(1, 2, 3))
print(myadd4(1, 2, 3, 4))